Optimal. Leaf size=23 \[ -\frac {\log \left (a \cos ^2(e+f x)+b\right )}{2 a f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {4138, 260} \[ -\frac {\log \left (a \cos ^2(e+f x)+b\right )}{2 a f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 260
Rule 4138
Rubi steps
\begin {align*} \int \frac {\tan (e+f x)}{a+b \sec ^2(e+f x)} \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {x}{b+a x^2} \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac {\log \left (b+a \cos ^2(e+f x)\right )}{2 a f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.19, size = 26, normalized size = 1.13 \[ -\frac {\log (a \cos (2 (e+f x))+a+2 b)}{2 a f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.53, size = 21, normalized size = 0.91 \[ -\frac {\log \left (a \cos \left (f x + e\right )^{2} + b\right )}{2 \, a f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.23, size = 37, normalized size = 1.61 \[ -\frac {\ln \left (a +b \left (\sec ^{2}\left (f x +e \right )\right )\right )}{2 f a}+\frac {\ln \left (\sec \left (f x +e \right )\right )}{f a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.34, size = 26, normalized size = 1.13 \[ -\frac {\log \left (a \sin \left (f x + e\right )^{2} - a - b\right )}{2 \, a f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.56, size = 63, normalized size = 2.74 \[ \frac {\mathrm {atanh}\left (\frac {a}{2\,\left (\frac {3\,a}{2}+2\,b+\frac {a\,\cos \left (2\,e+2\,f\,x\right )}{2}\right )}-\frac {a\,\cos \left (2\,e+2\,f\,x\right )}{2\,\left (\frac {3\,a}{2}+2\,b+\frac {a\,\cos \left (2\,e+2\,f\,x\right )}{2}\right )}\right )}{a\,f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 12.70, size = 128, normalized size = 5.57 \[ \begin {cases} \frac {\tilde {\infty } x \tan {\relax (e )}}{\sec ^{2}{\relax (e )}} & \text {for}\: a = 0 \wedge b = 0 \wedge f = 0 \\\frac {\log {\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 a f} & \text {for}\: b = 0 \\\frac {x \tan {\relax (e )}}{a + b \sec ^{2}{\relax (e )}} & \text {for}\: f = 0 \\- \frac {1}{2 b f \sec ^{2}{\left (e + f x \right )}} & \text {for}\: a = 0 \\- \frac {\log {\left (- i \sqrt {a} \sqrt {\frac {1}{b}} + \sec {\left (e + f x \right )} \right )}}{2 a f} - \frac {\log {\left (i \sqrt {a} \sqrt {\frac {1}{b}} + \sec {\left (e + f x \right )} \right )}}{2 a f} + \frac {\log {\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 a f} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________